Page({
  data: {
    // 轮播图数据
    bannerList: [
      { id: 1, imageUrl: 'cloud://cloud1-1gr78ytb75fcefdd.636c-cloud1-1gr78ytb75fcefdd-1327891859/xiaoyuan/首页顶部轮播1.jpg' },
      { id: 2, imageUrl: 'cloud://cloud1-1gr78ytb75fcefdd.636c-cloud1-1gr78ytb75fcefdd-1327891859/xiaoyuan/首页顶部轮播2.jpg' },
      { id: 3, imageUrl: 'cloud://cloud1-1gr78ytb75fcefdd.636c-cloud1-1gr78ytb75fcefdd-1327891859/xiaoyuan/首页顶部轮播3.jpg' }
    ],
    
    // 菜单数据
    menuList: [

      { id: 1, title: '校园公告', icon: '/assets/images/icons/news_1.png', url: '/pages/notice/index' },
      { id: 2, title: '今日美食', icon: '/assets/images/icons/煲汤.png', url: '/pages/todayFood/index' },
      { id: 3, title: '常用服务', icon: '/assets/images/icons/来访登记.png', url: '/pages/common-services/index' },
      { id: 4, title: '来访登记', icon: '/assets/images/icons/news_4.png', url: '/pages/web-view/index?url=/assets/images/yuyue.jpg' }
    ]
  },
  
  // 页面跳转方法
  navigateTo: function(e) {
    const url = e.currentTarget.dataset.url;
    if (!url) {
      wx.showToast({
        title: '程序员说：功能开发中',
        icon: 'none'
      });
      return;
    }
    wx.navigateTo({
      url: url
    });
  },

  navigateToreserve() {
    wx.navigateTo({
      url: '',
    })
  },
  
  onLoad: function() {
    // 页面加载时的逻辑


  }
});